import request from "../utils/request";
// 用户密码
export function adminLoginFn (params) {
return request({
 url: '/posts',
 method: 'get',
 data: params
})
}

// 获取餐饮列表
export function getfoot (params) {
    return request({
     url: '/foot',
     method: 'get',
     data: params
    })
}

//  删除餐饮列表
export function deletefoot (params) {
    return request({
     url: `/foot/${params}`,
     method: 'delete',
     data: params
    })
}

//  添加餐饮列表
export function postfoot (params) {
    return request({
     url: '/foot',
     method: 'post',
     data: params
    })
}

// 获取娱乐列表
export function getplay (params) {
    return request({
     url: '/play',
     method: 'get',
     data: params
    })
}

//  删除娱乐列表
export function deleteplay (params) {
    return request({
     url: `/play/${params}`,
     method: 'delete',
     data: params
    })
}

//  添加娱乐列表
export function postplay (params) {
    return request({
     url: '/play',
     method: 'post',
     data: params
    })
}


// 获取商品列表
export function getconsumption (params) {
    return request({
     url: '/consumption',
     method: 'get',
     data: params
    })
}

//  删除商品列表
export function deleteconsumption (params) {
    return request({
     url: `/consumption/${params}`,
     method: 'delete',
     data: params
    })
}

//  添加商品列表
export function postconsumption (params) {
    return request({
     url: '/consumption',
     method: 'post',
     data: params
    })
}


// 获取服务列表
export function getservice (params) {
    return request({
     url: '/service',
     method: 'get',
     data: params
    })
}

//  删除服务列表
export function deleteservice (params) {
    return request({
     url: `/service/${params}`,
     method: 'delete',
     data: params
    })
}

//  添加服务列表
export function postservice (params) {
    return request({
     url: '/service',
     method: 'post',
     data: params
    })
}


//  添加  结算信息
export function postsettlement (params) {
    return request({
     url: '/settlement',
     method: 'post',
     data: params
    })
}